<?php $paginator2->options(array('url' => $this->passedArgs)); ?>

<h1><?php echo $caption_for_layout; ?></h1>

<?php echo $paginator2->first_numbers_last(array('separator' => ' . ', 'before' => '<div class="paginator">', 'after' => '</div>')); ?>

<?php foreach ($rows as $i => $row) { ?>

<?php if (isset($row[$model]['thumbnail-uploaded'])) { ?>
<img src="<?php echo $row[$model]['thumbnail-uploaded']['url_time']; ?>" alt="<?php echo $row[$model]['image_alt']; ?>" title="<?php echo $row[$model]['image_caption']; ?>" />
<?php } ?>
<div class="published"><?php echo $time->format('d.m.Y', $row[$model]['published']); ?></div>
<div class="caption"><?php echo $row[$model]['caption']; ?></div>
<?php echo $row[$model]['brief']; ?>
<a href="<?php echo $html->url(array('action' => 'view', 'id' => $row[$model]['id'])); ?>">view</a>

<?php } ?>